<template>
  <div>
    <a-descriptions>
      <a-descriptions-item label="姓名">{{name}}</a-descriptions-item>
      <a-descriptions-item label="用户名">{{user_name}}</a-descriptions-item>
      <a-descriptions-item label="工号">{{no}}</a-descriptions-item>
      <a-descriptions-item label="单位">{{company}}</a-descriptions-item>
      <a-descriptions-item label="部门组织">{{apartment}}</a-descriptions-item>
      <a-descriptions-item label="职位">{{business}}</a-descriptions-item>
      <a-descriptions-item label="级别">{{level}}</a-descriptions-item>
      <a-descriptions-item label="上级负责人">{{supervisor}}</a-descriptions-item>
      <a-descriptions-item label="所属区域">{{region}}</a-descriptions-item>
      <a-descriptions-item label="实际工作点">{{place}}</a-descriptions-item>
      <a-descriptions-item label="入职日期">{{start_date}}</a-descriptions-item>
      <a-descriptions-item label="试用期">{{probation}}个月</a-descriptions-item>
      <a-descriptions-item label="转正日期">{{begin_date}}</a-descriptions-item>
      <a-descriptions-item label="司龄">{{duration}}年</a-descriptions-item>
    </a-descriptions>
  </div>
</template>

<script>
export default {
  async asyncData({app}) {
    const {result} = await app.$axios.get('/api/info/me')
    return result
  }
}
</script>